Page({
  data:{
    courseId:null,
    courseInfo:{}
  },
  onLoad:function(options){
    const courseId = options.courseId;
    this.setData({
      courseId:courseId
    });
    this.fetchcourseInfo(courseId);
  },
  fetchcourseInfo:function(courseId){
    const that = this;
    wx.request({
      url: 'url',
      method:'GET',
      success(res){
        if(res.statusCode==200){
          that.setData({
            courseInfo:res.data
          });
        }else{
          console.log("获取信息失败");
        }
      }
    });
  },
  b
})